<template>
  <div class="voluntary-item">
    <img :src="voluntary.imgUrl" alt="" v-if="voluntary.imgUrl">
    <p class="title"><i class="el-icon-s-flag"></i> 活动主题：{{voluntary.title}}</p>
    <p class="promoter"><i class="el-icon-user-solid"></i> 发起人: {{voluntary.promoter}}</p>
    <p class="desc"><i class="el-icon-info"></i> 具体内容：{{voluntary.content}}</p>
    <p class="place"><i class="el-icon-location"></i> 活动地点：{{voluntary.place}}</p>
    <p class="time"><i class="el-icon-message-solid"></i> 活动时间：{{voluntary.startTime}}至{{voluntary.endTime}}</p>
    <p class="num"><i class="el-icon-s-custom"></i> 需要人数：{{voluntary.needNum}}人</p>
    <a href="">去参与></a>
  </div>
</template>

<script>
export default {
  name: 'VoluntaryItem',
  props: {
    voluntary: Object
  }
}
</script>

<style scoped>
  .voluntary-item {
    width: 400px;
    /* background-color: #F2F3FF; */
    border-radius: 5px;
    margin: 30px;
    padding: 25px;
  }

  img {
    width: 350px;
    margin-bottom: 20px;
  }

  p {
    margin-left: 5px;
    margin-bottom: 10px;
  }
  
  a {
    display: inline-block;
    font-size: 14px;
    text-decoration: underline;
    margin-top: 15px;
    margin-left: 285px;
  }

  a:hover {
    color: #86a3b1;
  }
</style>